<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ page import="com.db.conn"%>
<%@ page import="java.sql.*"%>
<%
	String path = request.getContextPath();
%>



<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">

<html xmlns="http://www.w3.org/1999/xhtml">
  <head>
 <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <title>小说阅读系统</title>
     <meta name="viewport" content="width=device-width,initial-scale=1">
    <!-- Iconic Fonts -->
    <link href="<%=path %>/admin/css/icon.css" rel="stylesheet">
    <link href="<%=path %>/admin/css/all.min.css" rel="stylesheet">
    <link rel="stylesheet" href="<%=path %>/admin/css/flaticon.css">
    <link rel="stylesheet" href="<%=path %>/admin/css/cryptocoins.css">
    <link rel="stylesheet" href="<%=path %>/admin/css/cryptocoins-colors.css">
    <!-- Bootstrap core CSS -->
    <link href="<%=path %>/admin/css/bootstrap.min.css" rel="stylesheet">
    <!-- jQuery UI -->
    <link href="<%=path %>/admin/css/jquery-ui.min.css" rel="stylesheet">
    <!-- Page Specific Css (Datatables.css) -->
    <link href="<%=path %>/admin/css/datatables.min.css" rel="stylesheet">
    <!-- Page Specific CSS (Slick Slider.css) -->
    <link href="<%=path %>/admin/css/slick.css" rel="stylesheet">
    <!-- Mednalytics styles -->
    <link href="<%=path %>/admin/css/style.css" rel="stylesheet">

  </head>

  <body   class="ms-body ms-aside-left-open ms-primary-theme ms-has-quickbar">

   <%

		String lname=(String) session.getAttribute("adminLname");
		String role=(String) session.getAttribute("role");
  if(lname==null){ %>
<script type="text/javascript" language="javascript">
		alert("您还没有登录，请登录...");
		window.document.location.href="<%=path %>/login.jsp";
	</script>
  <% return;} %>




    <!-- Preloader -->
    <div id="preloader-wrap">
        <div class="spinner spinner-8">
            <div class="ms-circle1 ms-child"></div>
            <div class="ms-circle2 ms-child"></div>
            <div class="ms-circle3 ms-child"></div>
            <div class="ms-circle4 ms-child"></div>
            <div class="ms-circle5 ms-child"></div>
            <div class="ms-circle6 ms-child"></div>
            <div class="ms-circle7 ms-child"></div>
            <div class="ms-circle8 ms-child"></div>
            <div class="ms-circle9 ms-child"></div>
            <div class="ms-circle10 ms-child"></div>
            <div class="ms-circle11 ms-child"></div>
            <div class="ms-circle12 ms-child"></div>
        </div>
    </div>
    <!-- Overlays -->
    <div class="ms-aside-overlay ms-overlay-left ms-toggler" data-target="#ms-side-nav" data-toggle="slideLeft"></div>
    <div class="ms-aside-overlay ms-overlay-right ms-toggler" data-target="#ms-recent-activity" data-toggle="slideRight"></div>
    <!-- Sidebar Navigation Left -->
    <aside id="ms-side-nav" class="side-nav fixed ms-aside-scrollable ms-aside-left">
        <!-- Logo -->
        <div class="logo-sn ms-d-block-lg">
            <a class="pl-0 ml-0 text-center" href="<%=path%>/admin/index.jsp" style="
                                                                   font-size: 20px;
                                                                   color: white;
                                                               ">
                小说阅读系统
            </a>
            <a href="#" class="text-center ms-logo-img-link">
                <img src="<%=path %>/admin/img/doctor-3.jpeg" alt="logo">
            </a>
            <h5 class="text-center text-white mt-2"><%= role%></h5>
            <h6 class="text-center text-white mb-3"><%= lname%></h6>
        </div>
        <!-- Navigation -->

        <ul class="accordion ms-main-aside fs-14" id="side-nav-accordion">   
            




            <li class="menu-item">
                <a href="#" class="has-chevron collapsed" data-toggle="collapse" data-target="#tables1" aria-expanded="false" aria-controls="tables">
                    <span><i class="material-icons fs-16">tune</i>用户管理</span>
                </a>
                <ul id="tables1" class="collapse" aria-labelledby="tables" data-parent="#side-nav-accordion" style="">

		 <li>  <a href="<%=path %>/admin/member/member_Manage.jsp" target="frame">管理用户</a></li>

                </ul>
            </li>


            <li class="menu-item">
                <a href="#" class="has-chevron collapsed" data-toggle="collapse" data-target="#tables2" aria-expanded="false" aria-controls="tables">
                    <span><i class="material-icons fs-16">tune</i>小说类别管理</span>
                </a>
                <ul id="tables2" class="collapse" aria-labelledby="tables" data-parent="#side-nav-accordion" style="">
                    		 <li>  <a href="<%=path %>/admin/category/category_Add.jsp" target="frame">添加小说类别</a></li>
		 <li>  <a href="<%=path %>/admin/category/category_Manage.jsp" target="frame">管理小说类别</a></li>

                </ul>
            </li>

            <li class="menu-item">
                <a href="#" class="has-chevron collapsed" data-toggle="collapse" data-target="#tables4" aria-expanded="false" aria-controls="tables">
                    <span><i class="material-icons fs-16">tune</i>通知公告管理</span>
                </a>
                <ul id="tables4" class="collapse" aria-labelledby="tables" data-parent="#side-nav-accordion" style="">
                    <li>  <a href="<%=path %>/admin/placard/placard_Add.jsp" target="frame">添加通知公告</a></li>
                    <li>  <a href="<%=path %>/admin/placard/placard_Manage.jsp" target="frame">管理通知公告</a></li>

                </ul>
            </li>


            <li class="menu-item">
                <a href="#" class="has-chevron collapsed" data-toggle="collapse" data-target="#tables3" aria-expanded="false" aria-controls="tables">
                    <span><i class="material-icons fs-16">tune</i>小说管理</span>
                </a>
                <ul id="tables3" class="collapse" aria-labelledby="tables" data-parent="#side-nav-accordion" style="">
                    		 <li>  <a href="<%=path %>/admin/books/books_Add.jsp" target="frame">添加小说</a></li>
		 <li>  <a href="<%=path %>/admin/books/books_Manage.jsp" target="frame">管理小说</a></li>

                </ul>
            </li>




            <li class="menu-item">
                <a href="#" class="has-chevron collapsed" data-toggle="collapse" data-target="#tables8" aria-expanded="false" aria-controls="tables">
                    <span><i class="material-icons fs-16">tune</i>小说评论管理</span>
                </a>
                <ul id="tables8" class="collapse" aria-labelledby="tables" data-parent="#side-nav-accordion" style="">

		 <li>  <a href="<%=path %>/admin/comment/comment_Manage.jsp" target="frame">管理小说评论</a></li>

                </ul>
            </li>


            <li class="menu-item">
                <a href="#" class="has-chevron collapsed" data-toggle="collapse" data-target="#tables9" aria-expanded="false" aria-controls="tables">
                    <span><i class="material-icons fs-16">tune</i>系统管理</span>
                </a>
                <ul id="tables9" class="collapse" aria-labelledby="tables" data-parent="#side-nav-accordion" style="">
                    		 <li>  <a href="<%=path %>/admin/admin/pass.jsp" target="frame">修改密码</a></li>

                </ul>
            </li>



        </ul>

    </aside>

    <!-- Main Content -->
    <main class="body-content">
        <!-- Navigation Bar -->
        <nav class="navbar ms-navbar">
            <div class="ms-aside-toggler ms-toggler pl-0" data-target="#ms-side-nav" data-toggle="slideLeft">
                <span class="ms-toggler-bar bg-white"></span>
                <span class="ms-toggler-bar bg-white"></span>
                <span class="ms-toggler-bar bg-white"></span>
            </div>
            <div class="logo-sn logo-sm ms-d-block-sm">
                <a class="pl-0 ml-0 text-center navbar-brand mr-0" >
                    <img src="<%=path %>/admin/img/mednalytics-logo-84x41.png" alt="logo">
                </a>
            </div>
            <ul class="ms-nav-list ms-inline mb-0" id="ms-nav-options">

                <li class="ms-nav-item  ms-d-none">
                    <span id="Time" style="float:left;color: white;padding-right: 50px"></span>
                    <script type="text/javascript">
                  function Refresh(){
                      Time.innerHTML=" 当前时间："+new Date().toLocaleString()+' 星期'+'日一二三四五六'.charAt(new Date().getDay());
                      setTimeout("Refresh()",1000);
                  }
                  var timer=setTimeout("Refresh()",1000);
                </script>
                </li>


                <li class="ms-nav-item ms-nav-user dropdown">
                    <a href="#" id="userDropdown" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
                        <img class="ms-user-img ms-img-round float-right" src="<%=path %>/admin/img/doctor-3.jpeg" alt="people">
                    </a>
                    <ul class="dropdown-menu dropdown-menu-right user-dropdown" aria-labelledby="userDropdown">
                        <li class="dropdown-menu-header">
                            <h6 class="dropdown-header ms-inline m-0">
                                <span class="text-disabled">欢迎您, <%= lname%></span>
                            </h6>
                        </li>
                        <li class="dropdown-divider"></li>

                        <li class="dropdown-menu-footer">
                            <a class="media fs-14 p-2" href="<%=path %>/admin/admin/pass.jsp" target="frame">
                                <span><i class="flaticon-security mr-2"></i> 修改密码</span>
                            </a>
                        </li>
                        <li class="dropdown-menu-footer">
							<a  href="<%=path %>/login.jsp" onclick='return confirm("您确定要退出登录吗？");'   class="media fs-14 p-2">
  		  <span><i class="flaticon-shut-down mr-2"></i> 退出登录</span></a>


                        </li>
                    </ul>
                </li>
            </ul>
            <div class="ms-toggler ms-d-block-sm pr-0 ms-nav-toggler" data-toggle="slideDown" data-target="#ms-nav-options">
                <span class="ms-toggler-bar bg-white"></span>
                <span class="ms-toggler-bar bg-white"></span>
                <span class="ms-toggler-bar bg-white"></span>
            </div>
        </nav>


        <iframe id="frame" name="frame" style="width: 100%; "
                frameborder="0" scrolling="yes" src="right.jsp" onload="changeFrameHeight()">
        </iframe>


    </main>


    <!-- SCRIPTS -->
    <!-- Global Required Scripts Start -->
    <script src="<%=path %>/admin/js/jquery-3.3.1.min.js"></script>
    <script src="<%=path %>/admin/js/popper.min.js"></script>
    <script src="<%=path %>/admin/js/bootstrap.min.js"></script>
    <script src="<%=path %>/admin/js/perfect-scrollbar.js"> </script>
    <script src="<%=path %>/admin/js/jquery-ui.min.js"> </script>
    <!-- Global Required Scripts End -->
    <!-- Page Specific Scripts Start -->
    <script src="<%=path %>/admin/js/slick.min.js"> </script>
    <script src="<%=path %>/admin/js/moment.js"> </script>
    <script src="<%=path %>/admin/js/jquery.webticker.min.js"> </script>
    <script src="<%=path %>/admin/js/Chart.bundle.min.js"> </script>
    <script src="<%=path %>/admin/js/Chart.Financial.js"> </script>
    <!-- Page Specific Scripts Finish -->
    <!-- Page Specific Scripts Start -->
    <script src="<%=path %>/admin/js/datatables.min.js"> </script>
    <!-- Mednalytics core JavaScript -->
    <script src="<%=path %>/admin/js/framework.js"></script>
    <!-- Settings -->
    <script src="<%=path %>/admin/js/settings.js"></script>

    <script type="text/javascript">
    function changeFrameHeight(){
        var ifm= document.getElementById("frame");
        ifm.height=document.documentElement.clientHeight-87;

    }

    window.onresize=function(){
         changeFrameHeight();

    }
    </script>




  </body>
</html>


